<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/luntan/Public/Css/css.css" />
<title>帖子管理</title>
</head>

<body>
<div id="content">
	<ul>
	<?php if(is_array($arr)): foreach($arr as $key=>$data): ?><li>
	  		<div class="ct">
				<div class="ct-top">
					<h3>帖子题目:</h3>
					<p class="p1"><?php echo ($data["title"]); ?></p>
					<h3>帖子分类:</h3>
					<p class="p2"><?php echo ($data["class"]); ?></p>
					<h3>发布人:</h3>
					<p class="p3"><?php echo ($data["username"]); ?></p>
				</div>
				<div class="ct-md">
					<span>内容:</span><p><?php echo ($data["content"]); ?></p>
				</div>
				<div class="time-and-hot">
					<h3>发布时间:</h3><p class="p2"><?php echo (date('Y m d H:i:s',$data["time"])); ?></p>
					<h3>点击量:</h3><p class="p2"><?php echo ($data["read"]); ?></p>
				
				</div>
				<div class="ct-bt">
					<a href="/luntan/index.php/Home/Admin/delete_tie/tid/<?php echo ($data["tid"]); ?>" class="bt">删除</a>
					<?php if($data['ding'] != 1): ?><a href="/luntan/index.php/Home/Admin/zhiding/tid/<?php echo ($data["tid"]); ?>" class="bt">置顶</a>
					<?php else: ?><span class="bt">已置顶</span><?php endif; ?>
					<?php if($data['jing'] != 1): ?><a href="/luntan/index.php/Home/Admin/jiajing/tid/<?php echo ($data["tid"]); ?>" class="bt">加精</a>
					<?php else: ?><span class="bt">已加精</span><?php endif; ?>
				</div>	
	
			</div>
		</li><?php endforeach; endif; ?>
	<center><?php echo ($show); ?></center>	
	
	
</div>



</body>
</html>